/*******************************************************************
 * 外语翻译平台(translate) 
 *
 * 成都一亿信息技术公司 版权所有
 * 
 * Copyright (C) 2010 Transer Information Technology Co., Ltd.
 *
 * @Version : 1.0  2010-12-29 下午08:58:25
 *
 * ActiveEmailJob.java 
 *
 *******************************************************************/
package com.transer.job;

import com.transer.persistance.bean.User;
import com.transer.persistance.dao.DatabaseDao;
import com.transer.persistance.dao.IUserDao;
import com.transer.persistance.exception.TranserDatabaseException;

/**
 * class defination are there
 * 
 * @author Mark
 * 
 * @version 1.0 ywengineer@gmail.com
 * 
 */
public class UpdateUserJob implements Runnable {
	// 数据库操作
	private DatabaseDao database;
	// 用户
	private User user;

	public UpdateUserJob(DatabaseDao dao, User user) {
		this.database = dao;
		this.user = user;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void run() {
		try {
			// TODO Auto-generated method stub
			IUserDao userDao = (IUserDao) database;
			userDao.updateUser(user);
		} catch (TranserDatabaseException e) {

		}
	}
}
